<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      template="../template.xhtml">   
      
     <ui:define name="content">
		 <h:form>
		<h:dataTable id="row" value="#{alunoMB.alunos}" var="item">  
			  <f:facet name="header">  
			    <h:outputText value="Lista de alunos" />  
			  </f:facet>
			    
			  <h:column>  
			    <f:facet name="header">  
			      <h:outputText value="codigo" />  
			    </f:facet>  
			    <h:outputText value="#{item.id}" />  
			  </h:column>
			  
			  <h:column>  
			    <f:facet name="header">  
			      <h:outputText value="nome" />  
			    </f:facet>  
			    <h:outputText value="#{item.nome}" />  
			  </h:column>
			  
			  <h:column>  
			    <f:facet name="header">  
			      <h:outputText value="operacao" />  
			    </f:facet>  
			   
			   	<h:commandButton action="#{alunoMB.deletar(item.id)}" value="deletar" />
			  </h:column>
			    
		</h:dataTable> 
     </h:form>
     </ui:define>
</ui:composition>